const Koa = require('koa')
const cors = require('@koa/cors')
const server = require('koa-static')
const historyApiFallback = require('koa2-connect-history-api-fallback')
const apiRouter = require('./sellInfo')

const port = 6600

const app = new Koa()



app
  .use(historyApiFallback())
  .use(server('./'))
  .use(cors())
  .use(apiRouter.routes())
  .use(apiRouter.allowedMethods())

module.export = app.listen(port)
